package client.gui;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;

public class DrawWindow extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1392730706244775409L;

	public DrawWindow(InfoBar infoBar, Canvas canvas) {
		setLayout(new GridBagLayout());
		GridBagConstraints c = new GridBagConstraints();

		c.gridy = 0;
		add(infoBar, c);

		c.gridy = 1;
		add(canvas, c);

		setBorder(BorderFactory.createTitledBorder(
				BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
				"Canvas"));
	}

}
